﻿using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using VioletDevelopmentLaboratory.Net.Web;
using VioletDevelopmentLaboratory.Net.Web.Component;

public partial class vboard_component_board_template_default_view_sub_author : BoardSubPartBase
{
	private BoardThread CurrentThread;

	protected void Page_Init(Object sender, EventArgs e)
	{
		this.CurrentThread = (BoardThread)this.Page.Items["CurrentThread"];
	}

	protected void Page_Load(object sender, EventArgs e)
	{
		if (!Page.IsPostBack)
		{
			if (!this.CurrentThread.IsDeleted)
			{
				String userImageUrl = VUtility.GetMemberImageUrl(this.CurrentThread.ProviderUserKey);
				UserImageLiteral.Text = String.Format(GetLocalResourceObject("Share_UserImageFormat").ToString(), userImageUrl, userImageUrl);
				UserNameLiteral.Text = this.CurrentThread.UserName;
			}
			else
			{
				this.Visible = false;
			}
		}
	}
}
